<template>
  <!-- 南航的3d数据 -->
  <vc-primitive-tileset url="/nuaa/tileset.json"></vc-primitive-tileset>

  <vc-primitive-tileset
    url="/tileset/files/tileset.json"
    @ready="onTilesetReady"
  ></vc-primitive-tileset>

  <!--天目湖校区-->
  <!-- <vc-primitive-tileset url="/tianmuhu/tileset.json"></vc-primitive-tileset> -->
</template>

<script setup>
import { VcPrimitiveTileset } from "vue-cesium";

const onTilesetReady = ({ cesiumObject: tileset, viewer }) => {
  viewer.zoomTo(tileset);
};
</script>

<style scoped></style>
